package com.ky.manage.activityLifecycle;

/**
 * app后台回到前台工具类
 *
 * @author zhaoyan
 * @date 2020-02-27
 */
public class AppBack2ForgroundUtils {
    private static volatile AppBack2ForgroundUtils instance;

    private AppBack2ForgroundUtils() {
    }

    public static AppBack2ForgroundUtils getInstance() {
        if (instance == null) {
            synchronized (AppBack2ForgroundUtils.class) {
                if (instance == null) {
                    instance = new AppBack2ForgroundUtils();
                }
            }
        }
        return instance;
    }

    /**
     * 应用回到后台
     */
    public void onApp2Background() {
    }

    /**
     * 应用回到前台
     */
    public void onApp2Foreground() {
    }
}